package com.cema.manage.project.manage.users.domain;

import cn.hutool.core.util.StrUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户账号表 biz_users
 *
 * @author reasahi
 * @date 2024-07-08
 */
public class UsersVo implements Serializable {


    private Integer id;

    /**
     * 用户名
     */
    private String usNickname;
    /**
     * 推荐人
     */
    private Integer usParentId;

    /**
     * 手机号
     */
    private String afbPhone;
    private String joinIp;
    private String loginIp;
    /**
     * 金币
     */
    private String startGoldCoin;

    private String endGoldCoin;
    /**
     * 红包
     */
    private String startRedPacket;
    private String endRedPacket;

    /**
     * 累计天数
     */
    private String startSignInNumber;
    private String endSignInNumber;
    /**
     * 连续签到天数
     */
    private String startSignIdDayNumber;
    private String endSignIdDayNumber;
    /**
     * 累计登录天数
     */
    private String startLoginDayNumber;
    private String endLoginDayNumber;
    /**
     * 今天是否签到 1已签到 0未签到
     */
    private Integer signIn;

    /**
     * 今天是否有效 1是 0否
     */
    private Integer effective;

    /**
     * 登录时间
     */
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    private Date startLoginTime;

    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    private Date endLoginTime;

    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    private Date startTime;

    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    private Date endTime;


    private Integer status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsNickname() {
        return usNickname;
    }

    public void setUsNickname(String usNickname) {
        this.usNickname = usNickname;
    }

    public String getAfbPhone() {
        return afbPhone;
    }

    public void setAfbPhone(String afbPhone) {
        if (StrUtil.isNotEmpty(afbPhone)) {
            this.afbPhone = afbPhone;
        } else {
            this.afbPhone = null;
        }

    }

    public String getJoinIp() {
        return joinIp;
    }

    public void setJoinIp(String joinIp) {
        this.joinIp = joinIp;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        if (StrUtil.isNotEmpty(loginIp)) {
            this.loginIp = loginIp;
        } else {
            this.loginIp = null;
        }
    }

    public String getStartGoldCoin() {
        return startGoldCoin;
    }

    public void setStartGoldCoin(String startGoldCoin) {
        this.startGoldCoin = startGoldCoin;
    }

    public String getEndGoldCoin() {
        return endGoldCoin;
    }

    public void setEndGoldCoin(String endGoldCoin) {
        this.endGoldCoin = endGoldCoin;
    }

    public String getStartRedPacket() {
        return startRedPacket;
    }

    public void setStartRedPacket(String startRedPacket) {
        this.startRedPacket = startRedPacket;
    }

    public String getEndRedPacket() {
        return endRedPacket;
    }

    public void setEndRedPacket(String endRedPacket) {
        this.endRedPacket = endRedPacket;
    }

    public String getStartSignInNumber() {
        return startSignInNumber;
    }

    public void setStartSignInNumber(String startSignInNumber) {
        this.startSignInNumber = startSignInNumber;
    }

    public String getEndSignInNumber() {
        return endSignInNumber;
    }

    public void setEndSignInNumber(String endSignInNumber) {
        this.endSignInNumber = endSignInNumber;
    }

    public String getStartSignIdDayNumber() {
        return startSignIdDayNumber;
    }

    public void setStartSignIdDayNumber(String startSignIdDayNumber) {
        this.startSignIdDayNumber = startSignIdDayNumber;
    }

    public String getEndSignIdDayNumber() {
        return endSignIdDayNumber;
    }

    public void setEndSignIdDayNumber(String endSignIdDayNumber) {
        this.endSignIdDayNumber = endSignIdDayNumber;
    }

    public String getStartLoginDayNumber() {
        return startLoginDayNumber;
    }

    public void setStartLoginDayNumber(String startLoginDayNumber) {
        this.startLoginDayNumber = startLoginDayNumber;
    }

    public String getEndLoginDayNumber() {
        return endLoginDayNumber;
    }

    public void setEndLoginDayNumber(String endLoginDayNumber) {
        this.endLoginDayNumber = endLoginDayNumber;
    }

    public Date getStartLoginTime() {
        return startLoginTime;
    }

    public void setStartLoginTime(Date startLoginTime) {
        this.startLoginTime = startLoginTime;
    }

    public Date getEndLoginTime() {
        return endLoginTime;
    }

    public void setEndLoginTime(Date endLoginTime) {
        this.endLoginTime = endLoginTime;
    }

    public Integer getSignIn() {
        return signIn;
    }

    public void setSignIn(Integer signIn) {
        this.signIn = signIn;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    public Integer getUsParentId() {
        return usParentId;
    }

    public void setUsParentId(Integer usParentId) {
        this.usParentId = usParentId;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Integer getEffective() {
        return effective;
    }

    public void setEffective(Integer effective) {
        this.effective = effective;
    }
}

